import Vue from 'vue'
import App from './App'
import { all } from 'vue-client'

all()
require('./bootstrap/less/bootstrap.less')


//榆林
// 案件计划用户
Vue.component('lcheck-plan', (resolve) => { require(['./components/android/yulin/LcheckPlan'], resolve) })
Vue.component('tools-page', (resolve) => { require(['./components/android/yulin/ToolsPage'], resolve) })

Vue.component('user-gasinfo', (resolve) => { require(['./components/android/yulin/UserGasinfo'], resolve) })
Vue.component('tableset', (resolve) => { require(['./components/android/yulin/Tableset'], resolve) })
Vue.component('equipment-inspection', (resolve) => { require(['./components/android/yulin/EquipmentInspection'], resolve) })
Vue.component('hiddentrouble-investigation', (resolve) => { require(['./components/android/yulin/HiddentroubleInvestigation'], resolve) })
Vue.component('customer-opinions', (resolve) => { require(['./components/android/yulin/CustomerOpinions'], resolve) })
Vue.component('nav-bottom', (resolve) => { require(['./components/android/yulin/NavBottom'], resolve) })
Vue.component('check-page', (resolve) => { require(['./components/android/yulin/CheckPage'], resolve) })
Vue.component('upload-page', (resolve) => { require(['./components/android/yulin/UploadPage'], resolve) })
Vue.component('new-page', (resolve) => { require(['./components/android/yulin/NewPage'], resolve) })


Vue.component('user-gasinfo', (resolve) => { require(['./components/android/yulin/UserGasinfo'], resolve) })
// 登录
Vue.component('login', (resolve) => { require(['./components/android/Login'], resolve) })
// 安检员导航
Vue.component('checker', (resolve) => { require(['./components/android/Checker'], resolve) })
// 维修员
Vue.component('repairman', (resolve) => { require(['./components/android/Repairman'], resolve) })
// 所长
Vue.component('station-master', (resolve) => { require(['./components/android/StationMaster'], resolve) })
// 安检主页
Vue.component('checker-main', (resolve) => { require(['./components/android/CheckerMain'], resolve) })
// 电话实时状态
Vue.component('phone-state', (resolve) => { require(['./components/android/PhoneState'], resolve) })
// 身份验证
Vue.component('checker-avarta', (resolve) => { require(['./components/android/CheckerAvarta'], resolve) })
// 安检计划 月份导航
Vue.component('check-plan', (resolve) => { require(['./components/android/CheckPlan'], resolve) })
// 安检计划 小区导航
Vue.component('area-plan', (resolve) => { require(['./components/android/AreaPlan'], resolve) })
// 安检计划 预约提醒
Vue.component('prearranged-plan', (resolve) => { require(['./components/android/PrearrangedPlan'], resolve) })
// 通知公告
Vue.component('check-notice', (resolve) => { require(['./components/android/CheckNotice'], resolve) })
// 小区统计
Vue.component('res-area-list', (resolve) => { require(['./components/android/ResAreaList'], resolve) })
// 安检项
Vue.component('check-plan-items', (resolve) => { require(['./components/android/CheckPlanItems'], resolve) })
// 安检单
Vue.component('check-paper', (resolve) => { require(['./components/android/CheckPaper'], resolve) })
// 系统设置
Vue.component('system-setting', (resolve) => { require(['./components/android/SystemSetting'], resolve) })
// 安检单-全局状态
Vue.component('paper-state', (resolve) => { require(['./components/android/PaperState'], resolve) })
// 安检单-用户基本信息
Vue.component('paper-user', (resolve) => { require(['./components/android/PaperUser'], resolve) })
// 安检单-安检设备
Vue.component('paper-device', (resolve) => { require(['./components/android/PaperDevice'], resolve) })
// 安检单-燃气表
Vue.component('paper-meter', (resolve) => { require(['./components/android/PaperMeter'], resolve) })
// 安检单-反馈
Vue.component('paper-feedback', (resolve) => { require(['./components/android/PaperFeedback'], resolve) })
// 安检单-立管
Vue.component('paper-plumb', (resolve) => { require(['./components/android/PaperPlumb'], resolve) })
// 安检单-阀门
Vue.component('paper-valve', (resolve) => { require(['./components/android/PaperValve'], resolve) })
// 安检单-户内管
Vue.component('paper-inner-plumb', (resolve) => { require(['./components/android/PaperInnerPlumb'], resolve) })
// 安检单-灶具
Vue.component('paper-cooker', (resolve) => { require(['./components/android/PaperCooker'], resolve) })
// 安检单-热水器
Vue.component('paper-heater', (resolve) => { require(['./components/android/PaperHeater'], resolve) })
// 安检单-锅炉
Vue.component('paper-furnace', (resolve) => { require(['./components/android/PaperFurnace'], resolve) })
// 安检单-报警器
Vue.component('paper-alarm', (resolve) => { require(['./components/android/PaperAlarm'], resolve) })
// 安检单-隐患
Vue.component('paper-defect', (resolve) => { require(['./components/android/PaperDefect'], resolve) })
// 安检单-设备隐患
Vue.component('device-defect', (resolve) => { require(['./components/android/DeviceDefect'], resolve) })
// 空白页面
Vue.component('void-page', (resolve) => { require(['./components/android/Blank'], resolve) })
// 电话本
Vue.component('phone-book', (resolve) => { require(['./components/android/AddressList'], resolve) })
// 维修首页
Vue.component('repair-main', (resolve) => { require(['./components/android/RepairMain'], resolve) })
// 维修单列表
Vue.component('repair-list', (resolve) => { require(['./components/android/RepairList'], resolve) })
// 维修单列表
Vue.component('repair-area-list', (resolve) => { require(['./components/android/RepairAreaList'], resolve) })
// 工商安检单
Vue.component('check-paper-noncivil', (resolve) => { require(['./components/android/CheckPaperNoncivil'], resolve) })
// 工商安检单 安检概况
Vue.component('paper-state-noncivil', (resolve) => { require(['./components/android/PaperStateNoncivil'], resolve) })
// 工商安检单 用户信息
Vue.component('paper-user-noncivil', (resolve) => { require(['./components/android/PaperUserNoncivil'], resolve) })
// 工商安检单 设备信息
Vue.component('paper-device-noncivil', (resolve) => { require(['./components/android/PaperDeviceNoncivil'], resolve) })
// 工商安检单 表/流量计信息
Vue.component('paper-meter-noncivil', (resolve) => { require(['./components/android/PaperMeterNoncivil'], resolve) })
// 工商安检单-立管
Vue.component('paper-plumb-noncivil', (resolve) => { require(['./components/android/PaperPlumbNoncivil'], resolve) })
// 工商安检单-阀门
Vue.component('paper-valve-noncivil', (resolve) => { require(['./components/android/PaperValveNoncivil'], resolve) })
// 工商安检单-报警器
Vue.component('paper-alarm-noncivil', (resolve) => { require(['./components/android/PaperAlarmNoncivil'], resolve) })
// 工商安检单-锅炉
Vue.component('paper-furnace-noncivil', (resolve) => { require(['./components/android/PaperFurnaceNoncivil'], resolve) })
// 工商安检单-燃气设备
Vue.component('paper-piece-noncivil', (resolve) => { require(['./components/android/PaperPieceNoncivil'], resolve) })
// 百度地图组件
// Vue.component('a-map', (resolve) => { require(['./components/map/AMap'], resolve) })
// 所长界面
Vue.component('master-main', (resolve) => { require(['./components/android/MasterMain'], resolve) })
// 考勤
Vue.component('attendance-tally', (resolve) => { require(['./components/android/AttendanceTally'], resolve) })
// 状态跟踪
Vue.component('track-state', (resolve) => { require(['./components/android/TrackState'], resolve) })
// 足迹图
Vue.component('footprint-map', (resolve) => { require(['./components/android/FootprintMap'], resolve) })
// 职位图
Vue.component('post-map', (resolve) => { require(['./components/android/PostMap'], resolve) })
// 年计划跟踪
Vue.component('checker-annual', (resolve) => { require(['./components/android/CheckerAnnual'], resolve) })
// 年计划跟踪
Vue.component('plumber-annual', (resolve) => { require(['./components/android/PlumberAnnual'], resolve) })
// 年分月计划跟踪
Vue.component('checker-annual-detail', (resolve) => { require(['./components/android/CheckerAnnualDetail'], resolve) })
// 年分月计划跟踪
Vue.component('plumber-annual-detail', (resolve) => { require(['./components/android/PlumberAnnualDetail'], resolve) })
// 月计划跟踪
Vue.component('checker-monthly', (resolve) => { require(['./components/android/CheckerMonthly'], resolve) })
// 年分月计划跟踪
Vue.component('plumber-monthly', (resolve) => { require(['./components/android/PlumberMonthly'], resolve) })
// 菜单
Vue.component('menu', (resolve) => { require(['./components/android/Menu'], resolve) })
// 安检计划
Vue.component('safety-checkplan', (resolve) => { require(['./components/android/SafetyCheckPlan'], resolve) })
// 任务跟踪
Vue.component('task-follow', (resolve) => { require(['./components/android/TaskFollow'], resolve) })
Vue.android = true
// Vue.android = false
Vue.staticUrl = 'http://61.134.61.238:8002/cr/rs/'
// Vue.staticUrl = 'http://192.168.30.213:8082/cr/rs/'
// Vue.staticUrl = 'http://192.168.20.180:8082/cr/rs/'
Vue.url = '/cr/rs/'
if(Vue.android)
  Vue.url = Vue.staticUrl
Vue.interval = 1*60*1000
Vue.nopic = 'file:///android_asset/nopic.png'
Vue.mapSetup = false
Vue.id = 100

/* eslint-disable no-new */
new Vue({
  el: 'body',
  components: { App }
})
